package com.ope.quartz.task;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.ApplicationArguments;
import org.springframework.boot.ApplicationRunner;
import org.springframework.core.env.Environment;
import org.springframework.stereotype.Component;


/**
 * 文件处理静态类
 *
 * @author fxr
 */
@Component
public class FileHandleConstant implements ApplicationRunner {

    @Autowired
    private Environment environment;

    //上午预测
    //"上海光伏短期功率预测{yyyyMMdd}-{yyyyMMdd+12960}.RB"
    public static String shdqsolarcaprbrule;
    public static String shdqsolarcaprb;
    public static String shdqsolarcaprbbak;
    //"上海风电短期功率预测{yyyyMMdd}-{yyyyMMdd+12960}.RB"
    public static String shdqwindcaprbrule;
    public static String shdqwindcaprb;
    public static String shdqwindcaprbbak;
    //"上海光伏功率预测{yyyyMMdd+1440}-{yyyyMMdd+14400}.RB"
    public static String shsolarrbrule;
    public static String shsolarrb;
    public static String shsolarrbbak;
    //"上海光伏功率预测{yyyyMMdd+1440}.eh"
    public static String shsolarehrule;
    public static String shsolareh;
    public static String shsolarehbak;
    //"上海风电功率预测{yyyyMMdd}-{yyyyMMdd+12960}.RB"
    public static String shwindrbrule;
    public static String shwindrb;
    public static String shwindrbbak;
    //"上海风电功率预测{yyyyMMdd}.eh"
    public static String shwindehrule;
    public static String shwindeh;
    public static String shwindehbak;
    //"上海光伏调度口径功率预测{yyyyMMdd}-{yyyyMMdd+12960}.RB"
    public static String shddsolarrbrule;
    public static String shddsolarrb;
    public static String shddsolarrbbak;

    //"上海光伏调度口径功率预测{yyyyMMdd}.eh"
    public static String shddsolarehrule;
    public static String shddsolareh;
    public static String shddsolarehbak;
    //"上海风电调度口径功率预测{yyyyMMdd+1440}-{yyyyMMdd+14400}.RB"
    public static String shddwindrbrule;
    public static String shddwindrb;
    public static String shddwindrbbak;

    //"上海风电调度口径功率预测{yyyyMMdd+1440}.eh"
    public static String shddwindehrule;
    public static String shddwindeh;
    public static String shddwindehbak;

    //"上海海上风电功率预测{yyyyMMdd}-{yyyyMMdd+12960}.RB"
    public static String shseawindrbrule;
    public static String shseawindrb;
    public static String shseawindrbbak;

    //"上海海上风电功率预测{yyyyMMdd}.eh"
    public static String shseawindehrule;
    public static String shseawindeh;
    public static String shseawindehbak;

    //"shanghai_dq_{yyyyMMdd+1440}.efl"
//    public static String shdqeflrule;
//    public static String shdqefl;
//    public static String shdqeflbak;

    //"shqkjxny-yc-{yyyyMMdd+1440}.xml"
    public static String shqkjxnyxmlrule;
    public static String shqkjxnyxml;
    public static String shqkjxnyxmlbak;

    //"shqkjgf-yc-{yyyyMMdd}.xml"
    public static String shqkjsolarxmlrule;
    public static String shqkjsolarxml;
    public static String shqkjsolarxmlbak;

    //"shjzsgf-yc-{yyyyMMdd}.xml"
//    public static String shjzssolarxmlrule;
//    public static String shjzssolarxml;
//    public static String shjzssolarxmlbak;

    //"shjzsfd-yc-{yyyyMMdd}.xml"
    public static String shjzswindxmlrule;
    public static String shjzswindxml;
    public static String shjzswindxmlbak;

    //"shfbs-yc-{yyyyMMdd+1440}.xml"
//    public static String shfbsxmlrule;
//    public static String shfbsxml;
//    public static String shfbsxmlbak;
    //"shddgf-yc-{yyyyMMdd+1440}.xml"
//    public static String shddsolarxmlrule;
//    public static String shddsolarxml;
//    public static String shddsolarxmlbak;

    //"shcz-yc-{yyyyMMdd+1440}.xml"
//    public static String shczxmlrule;
//    public static String shczxml;
//    public static String shczxmlbak;
    //"SH_{yyyyMMdd+1440}_XNYBLANCERQYC.txt"
    public static String shbalancetxtrule;
    public static String shbalancetxt;
    public static String shbalancetxtbak;
    //"SH_{yyyyMMdd+1440}_XNYBLANCERQYC.eh"
    public static String shbalanceehrule;
    public static String shbalanceeh;
    public static String shbalanceehbak;


    //下午二次预测
    //"上海光伏功率预测PM{yyyyMMdd+1440}-{yyyyMMdd+14400}.RB"
    public static String shsolarpmrbrule;
    public static String shsolarpmrb;
    public static String shsolarpmrbbak;
    //"上海光伏功率预测PM{yyyyMMdd+1440}.eh"
    public static String shsolarpmehrule;
    public static String shsolarpmeh;
    public static String shsolarpmehbak;
    //"上海风电功率预测PM{yyyyMMdd}-{yyyyMMdd+12960}.RB"
    public static String shwindpmrbrule;
    public static String shwindpmrb;
    public static String shwindpmrbbak;
    //"上海风电功率预测PM{yyyyMMdd}.eh"
    public static String shwindpmehrule;
    public static String shwindpmeh;
    public static String shwindpmehbak;
    //"上海光伏调度口径功率预测PM{yyyyMMdd}-{yyyyMMdd+12960}.RB"
    public static String shddsolarpmrbrule;
    public static String shddsolarpmrb;
    public static String shddsolarpmrbbak;

    //"上海光伏调度口径功率预测PM{yyyyMMdd}.eh"
    public static String shddsolarpmehrule;
    public static String shddsolarpmeh;
    public static String shddsolarpmehbak;
    //"上海风电调度口径功率预测PM{yyyyMMdd+1440}-{yyyyMMdd+14400}.RB"
    public static String shddwindpmrbrule;
    public static String shddwindpmrb;
    public static String shddwindpmrbbak;

    //"上海风电调度口径功率预测PM{yyyyMMdd+1440}.eh"
    public static String shddwindpmehrule;
    public static String shddwindpmeh;
    public static String shddwindpmehbak;

    //"上海海上风电功率预测PM{yyyyMMdd}-{yyyyMMdd+12960}.RB"
    public static String shseawindpmrbrule;
    public static String shseawindpmrb;
    public static String shseawindpmrbbak;

    //"上海海上风电功率预测PM{yyyyMMdd}.eh"
    public static String shseawindpmehrule;
    public static String shseawindpmeh;
    public static String shseawindpmehbak;

    //"shqkjxny-yc-{yyyyMMdd+1440}.xml"
    public static String shqkjxnyxmlpmrule;
    public static String shqkjxnyxmlpm;
    public static String shqkjxnyxmlpmbak;

    //"shqkjgf-yc-{yyyyMMdd}.xml"
    public static String shqkjsolarxmlpmrule;
    public static String shqkjsolarxmlpm;
    public static String shqkjsolarxmlpmbak;

    //"shjzsgf-yc-{yyyyMMdd}.xml"
//    public static String shjzssolarxmlpmrule;
//    public static String shjzssolarxmlpm;
//    public static String shjzssolarxmlpmbak;

    //"shjzsfd-yc-{yyyyMMdd}.xml"
    public static String shjzswindxmlpmrule;
    public static String shjzswindxmlpm;
    public static String shjzswindxmlpmbak;

    //"shfbs-yc-{yyyyMMdd+1440}.xml"
//    public static String shfbsxmlpmrule;
//    public static String shfbsxmlpm;
//    public static String shfbsxmlpmbak;
    //"shddgf-yc-{yyyyMMdd+1440}.xml"
//    public static String shddsolarxmlpmrule;
//    public static String shddsolarxmlpm;
//    public static String shddsolarxmlpmbak;

    //"shcz-yc-{yyyyMMdd+1440}.xml"
//    public static String shczxmlpmrule;
//    public static String shczxmlpm;
//    public static String shczxmlbakpm;
    //超短期
    //"SH_{yyyyMMddHHmm}_CDQXNYFORE.txt"
    public static String shcdqforetxtrule;
    public static String shcdqforetxt;
    public static String shcdqforetxtbak;
    //"SH_{yyyyMMddHHmm}_CDQXNYFORE.eh"
    public static String shcdqforeehrule;
    public static String shcdqforeeh;
    public static String shcdqforeehbak;
    //"SH_{yyyyMMddHHmm}_CDQXNYYC.txt"
    public static String shcdqyctxtrule;
    public static String shcdqyctxt;
    public static String shcdqyctxtbak;
    //"SH_{yyyyMMddHHmm}_CDQXNYYC.eh"
    public static String shcdqycehrule;
    public static String shcdqyceh;
    public static String shcdqycehbak;
    //"上海光伏超短期功率预测{yyyyMMddHHmm}-{yyyyMMddHHmm+225}.RB"
    public static String shcdqsolarrbrule;
    public static String shcdqsolarrb;
    public static String shcdqsolarrbbak;
    //"上海风电超短期功率预测{yyyyMMddHHmm}-{yyyyMMddHHmm+225}.RB"
    public static String shcdqwindrbrule;
    public static String shcdqwindrb;
    public static String shcdqwindrbbak;
    //"shanghai_cdq_{yyyyMMddHHmmss}.efl"
//    public static String shcdqeflrule;
//    public static String shcdqefl;
//    public static String shcdqeflbak;

    /**
     * @param arguments 2024年3月13日08:50:15
     */
    @Override
    public void run(ApplicationArguments arguments) {
        //上午
        shdqsolarcaprbrule = environment.getProperty("guarantfile.shdqsolarcaprbrule");
        shdqsolarcaprb = environment.getProperty("guarantfile.shdqsolarcaprb");
        shdqsolarcaprbbak = environment.getProperty("guarantfile.shdqsolarcaprbbak");
        shdqwindcaprbrule = environment.getProperty("guarantfile.shdqwindcaprbrule");
        shdqwindcaprb = environment.getProperty("guarantfile.shdqwindcaprb");
        shdqwindcaprbbak = environment.getProperty("guarantfile.shdqwindcaprbbak");
        shsolarrbrule = environment.getProperty("guarantfile.shsolarrbrule");
        shsolarrb = environment.getProperty("guarantfile.shsolarrb");
        shsolarrbbak = environment.getProperty("guarantfile.shsolarrbbak");
        shsolarehrule = environment.getProperty("guarantfile.shsolarehrule");
        shsolareh = environment.getProperty("guarantfile.shsolareh");
        shsolarehbak = environment.getProperty("guarantfile.shsolarehbak");
        shwindrbrule = environment.getProperty("guarantfile.shwindrbrule");
        shwindrb = environment.getProperty("guarantfile.shwindrb");
        shwindrbbak = environment.getProperty("guarantfile.shwindrbbak");
        shwindehrule = environment.getProperty("guarantfile.shwindehrule");
        shwindeh = environment.getProperty("guarantfile.shwindeh");
        shwindehbak = environment.getProperty("guarantfile.shwindehbak");
        shddsolarrbrule = environment.getProperty("guarantfile.shddsolarrbrule");
        shddsolarrb = environment.getProperty("guarantfile.shddsolarrb");
        shddsolarrbbak = environment.getProperty("guarantfile.shddsolarrbbak");
        shddsolarehrule = environment.getProperty("guarantfile.shddsolarehrule");
        shddsolareh = environment.getProperty("guarantfile.shddsolareh");
        shddsolarehbak = environment.getProperty("guarantfile.shddsolarehbak");
        shddwindrbrule = environment.getProperty("guarantfile.shddwindrbrule");
        shddwindrb = environment.getProperty("guarantfile.shddwindrb");
        shddwindrbbak = environment.getProperty("guarantfile.shddwindrbbak");
        shddwindehrule = environment.getProperty("guarantfile.shddwindehrule");
        shddwindeh = environment.getProperty("guarantfile.shddwindeh");
        shddwindehbak = environment.getProperty("guarantfile.shddwindehbak");
        shseawindrbrule = environment.getProperty("guarantfile.shseawindrbrule");
        shseawindrb = environment.getProperty("guarantfile.shseawindrb");
        shseawindrbbak = environment.getProperty("guarantfile.shseawindrbbak");
        shseawindehrule = environment.getProperty("guarantfile.shseawindehrule");
        shseawindeh = environment.getProperty("guarantfile.shseawindeh");
        shseawindehbak = environment.getProperty("guarantfile.shseawindehbak");
//        shdqeflrule = environment.getProperty("guarantfile.shdqeflrule");
//        shdqefl = environment.getProperty("guarantfile.shdqefl");
//        shdqeflbak = environment.getProperty("guarantfile.shdqeflbak");
        shqkjxnyxmlrule = environment.getProperty("guarantfile.shqkjxnyxmlrule");
        shqkjxnyxml = environment.getProperty("guarantfile.shqkjxnyxml");
        shqkjxnyxmlbak = environment.getProperty("guarantfile.shqkjxnyxmlbak");
        shqkjsolarxmlrule = environment.getProperty("guarantfile.shqkjsolarxmlrule");
        shqkjsolarxml = environment.getProperty("guarantfile.shqkjsolarxml");
        shqkjsolarxmlbak = environment.getProperty("guarantfile.shqkjsolarxmlbak");
//        shjzssolarxmlrule = environment.getProperty("guarantfile.shjzssolarxmlrule");
//        shjzssolarxml = environment.getProperty("guarantfile.shjzssolarxml");
//        shjzssolarxmlbak = environment.getProperty("guarantfile.shjzssolarxmlbak");
        shjzswindxmlrule = environment.getProperty("guarantfile.shjzswindxmlrule");
        shjzswindxml = environment.getProperty("guarantfile.shjzswindxml");
        shjzswindxmlbak = environment.getProperty("guarantfile.shjzswindxmlbak");
//        shfbsxmlrule = environment.getProperty("guarantfile.shfbsxmlrule");
//        shfbsxml = environment.getProperty("guarantfile.shfbsxml");
//        shfbsxmlbak = environment.getProperty("guarantfile.shfbsxmlbak");
//        shddsolarxmlrule = environment.getProperty("guarantfile.shddsolarxmlrule");
//        shddsolarxml = environment.getProperty("guarantfile.shddsolarxml");
//        shddsolarxmlbak = environment.getProperty("guarantfile.shddsolarxmlbak");
//        shczxmlrule = environment.getProperty("guarantfile.shczxmlrule");
//        shczxml = environment.getProperty("guarantfile.shczxml");
//        shczxmlbak = environment.getProperty("guarantfile.shczxmlbak");
        shbalancetxtrule = environment.getProperty("guarantfile.shbalancetxtrule");
        shbalancetxt = environment.getProperty("guarantfile.shbalancetxt");
        shbalancetxtbak = environment.getProperty("guarantfile.shbalancetxtbak");
        shbalanceehrule = environment.getProperty("guarantfile.shbalanceehrule");
        shbalanceeh = environment.getProperty("guarantfile.shbalanceeh");
        shbalanceehbak = environment.getProperty("guarantfile.shbalanceehbak");
        //下午
        shsolarpmrbrule = environment.getProperty("guarantfile.shsolarpmrbrule");
        shsolarpmrb = environment.getProperty("guarantfile.shsolarpmrb");
        shsolarpmrbbak = environment.getProperty("guarantfile.shsolarpmrbbak");
        shsolarpmehrule = environment.getProperty("guarantfile.shsolarpmehrule");
        shsolarpmeh = environment.getProperty("guarantfile.shsolarpmeh");
        shsolarpmehbak = environment.getProperty("guarantfile.shsolarpmehbak");
        shwindpmrbrule = environment.getProperty("guarantfile.shwindpmrbrule");
        shwindpmrb = environment.getProperty("guarantfile.shwindpmrb");
        shwindpmrbbak = environment.getProperty("guarantfile.shwindpmrbbak");
        shwindpmehrule = environment.getProperty("guarantfile.shwindpmehrule");
        shwindpmeh = environment.getProperty("guarantfile.shwindpmeh");
        shwindpmehbak = environment.getProperty("guarantfile.shwindpmehbak");
        shddsolarpmrbrule = environment.getProperty("guarantfile.shddsolarpmrbrule");
        shddsolarpmrb = environment.getProperty("guarantfile.shddsolarpmrb");
        shddsolarpmrbbak = environment.getProperty("guarantfile.shddsolarpmrbbak");
        shddsolarpmehrule = environment.getProperty("guarantfile.shddsolarpmehrule");
        shddsolarpmeh = environment.getProperty("guarantfile.shddsolarpmeh");
        shddsolarpmehbak = environment.getProperty("guarantfile.shddsolarpmehbak");
        shddwindpmrbrule = environment.getProperty("guarantfile.shddwindpmrbrule");
        shddwindpmrb = environment.getProperty("guarantfile.shddwindpmrb");
        shddwindpmrbbak = environment.getProperty("guarantfile.shddwindpmrbbak");
        shddwindpmehrule = environment.getProperty("guarantfile.shddwindpmehrule");
        shddwindpmeh = environment.getProperty("guarantfile.shddwindpmeh");
        shddwindpmehbak = environment.getProperty("guarantfile.shddwindpmehbak");
        shseawindpmrbrule = environment.getProperty("guarantfile.shseawindpmrbrule");
        shseawindpmrb = environment.getProperty("guarantfile.shseawindpmrb");
        shseawindpmrbbak = environment.getProperty("guarantfile.shseawindpmrbbak");
        shseawindpmehrule = environment.getProperty("guarantfile.shseawindpmehrule");
        shseawindpmeh = environment.getProperty("guarantfile.shseawindpmeh");
        shseawindpmehbak = environment.getProperty("guarantfile.shseawindpmehbak");
        shqkjxnyxmlpmrule = environment.getProperty("guarantfile.shqkjxnyxmlpmrule");
        shqkjxnyxmlpm = environment.getProperty("guarantfile.shqkjxnyxmlpm");
        shqkjxnyxmlpmbak = environment.getProperty("guarantfile.shqkjxnyxmlpmbak");
        shqkjsolarxmlpmrule = environment.getProperty("guarantfile.shqkjsolarxmlpmrule");
        shqkjsolarxmlpm = environment.getProperty("guarantfile.shqkjsolarxmlpm");
        shqkjsolarxmlpmbak = environment.getProperty("guarantfile.shqkjsolarxmlpmbak");
//        shjzssolarxmlpmrule = environment.getProperty("guarantfile.shjzssolarxmlpmrule");
//        shjzssolarxmlpm = environment.getProperty("guarantfile.shjzssolarxmlpm");
//        shjzssolarxmlpmbak = environment.getProperty("guarantfile.shjzssolarxmlpmbak");
        shjzswindxmlpmrule = environment.getProperty("guarantfile.shjzswindxmlpmrule");
        shjzswindxmlpm = environment.getProperty("guarantfile.shjzswindxmlpm");
        shjzswindxmlpmbak = environment.getProperty("guarantfile.shjzswindxmlpmbak");
//        shfbsxmlpmrule = environment.getProperty("guarantfile.shfbsxmlpmrule");
//        shfbsxmlpm = environment.getProperty("guarantfile.shfbsxmlpm");
//        shfbsxmlpmbak = environment.getProperty("guarantfile.shfbsxmlpmbak");
//        shddsolarxmlpmrule = environment.getProperty("guarantfile.shddsolarxmlpmrule");
//        shddsolarxmlpm = environment.getProperty("guarantfile.shddsolarxmlpm");
//        shddsolarxmlpmbak = environment.getProperty("guarantfile.shddsolarxmlpmbak");
//        shczxmlpmrule = environment.getProperty("guarantfile.shczxmlpmrule");
//        shczxmlpm = environment.getProperty("guarantfile.shczxmlpm");
//        shczxmlbakpm = environment.getProperty("guarantfile.shczxmlbakpm");
        //超短期
        shcdqforetxtrule = environment.getProperty("guarantfile.shcdqforetxtrule");
        shcdqforetxt = environment.getProperty("guarantfile.shcdqforetxt");
        shcdqforetxtbak = environment.getProperty("guarantfile.shcdqforetxtbak");
        shcdqforeehrule = environment.getProperty("guarantfile.shcdqforeehrule");
        shcdqforeeh = environment.getProperty("guarantfile.shcdqforeeh");
        shcdqforeehbak = environment.getProperty("guarantfile.shcdqforeehbak");
        shcdqyctxtrule = environment.getProperty("guarantfile.shcdqyctxtrule");
        shcdqyctxt = environment.getProperty("guarantfile.shcdqyctxt");
        shcdqyctxtbak = environment.getProperty("guarantfile.shcdqyctxtbak");
        shcdqycehrule = environment.getProperty("guarantfile.shcdqycehrule");
        shcdqyceh = environment.getProperty("guarantfile.shcdqyceh");
        shcdqycehbak = environment.getProperty("guarantfile.shcdqycehbak");
        shcdqsolarrbrule = environment.getProperty("guarantfile.shcdqsolarrbrule");
        shcdqsolarrb = environment.getProperty("guarantfile.shcdqsolarrb");
        shcdqsolarrbbak = environment.getProperty("guarantfile.shcdqsolarrbbak");
        shcdqwindrbrule = environment.getProperty("guarantfile.shcdqwindrbrule");
        shcdqwindrb = environment.getProperty("guarantfile.shcdqwindrb");
        shcdqwindrbbak = environment.getProperty("guarantfile.shcdqwindrbbak");
//        shcdqeflrule = environment.getProperty("guarantfile.shcdqeflrule");
//        shcdqefl = environment.getProperty("guarantfile.shcdqefl");
//        shcdqeflbak = environment.getProperty("guarantfile.shcdqeflbak");
    }



}
